package com.linkcard.list.manager;

import java.util.List;

import com.linkcard.commen.tools.Page;
import com.linkcard.list.model.Feedback;
import com.linkcard.list.persistence.FeedbackDao;

public class FeedbackManagerImpl implements FeedbackManager {

	private FeedbackDao feedbackDao=null;
	//添加留言
	public boolean addFeedback(Feedback feedback) {
		
		return feedbackDao.addFeedback(feedback);
	}
	public FeedbackDao getFeedbackDao() {
		return feedbackDao;
	}
	public void setFeedbackDao(FeedbackDao feedbackDao) {
		this.feedbackDao = feedbackDao;
	}
	//获得留言列表
	public List feedbackList(Page pageObj) {
		return this.feedbackDao.feedbackList(pageObj);
	}
	//删除留言
	public boolean deleteFeedback(Integer id) {
		return this.feedbackDao.deleteFeedback(id);
	}
	//修改留言
	public boolean modifyFeedback(Feedback feedback) {
		return this.feedbackDao.modifyFeedback(feedback);
	}

}
